home *** CD-ROM | disk | FTP | other *** search
/ Programming Languages Suite / ProgramD2.iso / Borland / Borland C++ V5.02 / GDIDIB.PAK / GDIDIB.RC < prev    next >
Text File  |  1997-05-06  |  13KB  |  387 lines

  1. #include "resource.h"
  2.  
  3. #if !defined (WORKSHOP_INVOKED)
  4. #include <windows.h>
  5. #endif
  6.  
  7. #include "winver.h"
  8. #include "globals.h"
  9. #include "toolbar.h"
  10. #include "statbar.h"
  11. #include "pendlg.h"
  12. #include "brushdlg.h"
  13. #include "colordlg.h"
  14. #include "infodlg.h"
  15.  
  16. IDI_APPICON             ICON    DISCARDABLE     "GDIDIB.ICO"
  17.  
  18. IDB_BMP                 BITMAP  MOVEABLE PURE   "TOOLBAR.BMP"
  19.  
  20. ABOUTBOX DIALOG DISCARDABLE  22, 17, 167, 73
  21. STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
  22. CAPTION "About GDIDIB"
  23. FONT 8, "System"
  24. BEGIN
  25.     DEFPUSHBUTTON   "OK",IDOK,132,2,32,14,WS_GROUP
  26.     ICON            IDI_APPICON,-1,3,2,18,20
  27.     LTEXT           "CompanyName",IDD_VERFIRST,30,2,100,8
  28.     LTEXT           "FileDescription",101,30,11,100,8
  29.     LTEXT           "FileVersion",102,30,20,137,8
  30.     LTEXT           "LegalCopyright",103,30,29,137,8
  31.     LTEXT           "LegalTrademarks",IDD_VERLAST,30,47,136,27
  32.     CONTROL         "",501,"Static",SS_BLACKRECT,29,43,138,1
  33. END
  34.  
  35. PENDLG DIALOG DISCARDABLE  6, 18, 170, 84
  36. STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
  37. CAPTION "Pen Style"
  38. BEGIN
  39.     RTEXT           "&Width:",-1,5,10,30,8
  40.     EDITTEXT        IDD_PENWIDTH,40,8,24,12,ES_AUTOHSCROLL
  41.     RTEXT           "&Style:",307,5,28,30,8
  42.     COMBOBOX        IDD_PENSTYLE,40,28,48,35,CBS_DROPDOWNLIST | WS_VSCROLL | 
  43.                     WS_TABSTOP
  44.     CONTROL         "",IDD_PENEXAMPLE,"Static",SS_BLACKFRAME,95,8,70,34
  45.     CTEXT           "Example",-1,95,46,70,8
  46.     PUSHBUTTON      "Set &Color...",IDD_PENCOLOR,10,62,60,14
  47.     DEFPUSHBUTTON   "OK",IDOK,75,62,40,14,WS_GROUP
  48.     PUSHBUTTON      "Cancel",IDCANCEL,120,62,40,14
  49. END
  50.  
  51. BRUSHDLG DIALOG DISCARDABLE  6, 18, 210, 91
  52. STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
  53. CAPTION "Create Brush"
  54. BEGIN
  55.     GROUPBOX        "Brush &Style",-1,5,6,120,55
  56.     CONTROL         "Solid",IDD_SOLIDBRUSH,"Button",BS_AUTORADIOBUTTON | 
  57.                     WS_GROUP | WS_TABSTOP,10,18,32,10
  58.     CONTROL         "Null (Hollow)",IDD_NULLBRUSH,"Button",
  59.                     BS_AUTORADIOBUTTON,53,18,70,10
  60.     CONTROL         "Hatched",IDD_HATCHBRUSH,"Button",BS_AUTORADIOBUTTON,10,
  61.                     32,43,10
  62.     RTEXT           "Hatch Style:",-1,13,44,50,8
  63.     COMBOBOX        IDD_HATCHSTYLE,68,42,48,35,CBS_DROPDOWNLIST | WS_VSCROLL | 
  64.                     WS_TABSTOP
  65.     CONTROL         "",IDD_BRUSHEXAMPLE,"Static",SS_BLACKFRAME,130,10,75,41
  66.     CTEXT           "Example",-1,130,54,75,8
  67.     PUSHBUTTON      "Set &Color...",IDD_BRUSHCOLOR,20,69,60,14
  68.     DEFPUSHBUTTON   "OK",IDOK,95,69,40,14
  69.     PUSHBUTTON      "Cancel",IDCANCEL,150,69,40,14
  70. END
  71.  
  72. COLORDLG DIALOG DISCARDABLE  0, 0, 202, 248
  73. STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
  74. CAPTION "Color"
  75. FONT 8, "MS Sans Serif"
  76. BEGIN
  77.     DEFPUSHBUTTON   "OK",IDOK,118,196,50,14
  78.     PUSHBUTTON      "Cancel",IDCANCEL,118,224,50,14
  79.     CONTROL         "System Palette:",IDD_CAPTION,"Static",SS_LEFTNOWORDWRAP | 
  80.                     WS_GROUP,4,4,184,10
  81.     CONTROL         "",IDD_PALCTRL,"PalCtrlClass",WS_TABSTOP,4,16,194,168
  82.     RTEXT           "Index:",IDD_CAPTIONINDEX,4,192,30,7
  83.     RTEXT           "Red:",IDD_CAPTIONRED,4,206,30,7
  84.     RTEXT           "Green:",IDD_CAPTIONGREEN,4,220,30,7
  85.     RTEXT           "Blue:",IDD_CAPTIONBLUE,4,234,30,7
  86.     LTEXT           "",IDD_INDEX,44,190,40,12
  87.     LTEXT           "",IDD_RED,44,204,40,12
  88.     LTEXT           "",IDD_GREEN,44,218,40,12
  89.     LTEXT           "",IDD_BLUE,44,232,40,12
  90. END
  91.  
  92. INFODLG DIALOG DISCARDABLE  31, 44, 167, 168
  93. STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
  94. CAPTION "Display Device Info"
  95. FONT 8, "MS Sans Serif"
  96. BEGIN
  97.     RTEXT           "Palette-Based Device:",-1,5,15,110,8
  98.     LTEXT           "",IDC_RCPALETTE,120,15,40,8
  99.     RTEXT           "Entries in System Palette:",-1,5,30,110,8
  100.     LTEXT           "",IDC_SIZEPALETTE,120,30,40,8
  101.     RTEXT           "Number of Reserved Entries:",-1,5,45,110,8
  102.     LTEXT           "",IDC_NUMRESERVED,120,45,40,8
  103.     RTEXT           "Device's Actual Color Resolution:",-1,5,60,110,8
  104.     LTEXT           "",IDC_COLORRES,120,60,40,8
  105.     RTEXT           "Entries in Color Table:",-1,15,96,100,8
  106.     LTEXT           "",IDC_NUMCOLORS,120,96,40,8
  107.     RTEXT           "Bits Per Pixel:",-1,15,110,100,8
  108.     LTEXT           "",IDC_BITSPIXEL,120,110,40,8
  109.     RTEXT           "Number of Color Planes:",-1,15,125,100,8
  110.     LTEXT           "",IDC_PLANES,120,125,40,8
  111.     DEFPUSHBUTTON   "OK",IDOK,66,148,40,14
  112.     GROUPBOX        "Palette Info",101,3,4,162,74
  113.     GROUPBOX        "Color Info",102,3,85,162,57
  114. END
  115.  
  116. SAVING DIALOG DISCARDABLE  105, 44, 206, 37
  117. STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_THICKFRAME
  118. CAPTION "DIB"
  119. FONT 8, "Helv"
  120. BEGIN
  121.     CTEXT           "Saving DIB section to file",-1,72,11,114,8
  122.     ICON            "DIB",-1,12,14,16,16
  123.     CTEXT           "filename",IDD_FILETEXT,56,23,146,8
  124. END
  125.  
  126. FILENEW DIALOG DISCARDABLE  36, 24, 133, 90
  127. STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
  128. CAPTION "New DIB"
  129. BEGIN
  130.     RTEXT           "Width:",-1,11,9,24,11,NOT WS_GROUP
  131.     EDITTEXT        IDD_WIDTH,40,8,20,11
  132.     RTEXT           "Height:",-1,11,27,24,11,NOT WS_GROUP
  133.     EDITTEXT        IDD_HEIGHT,40,26,20,11
  134.     DEFPUSHBUTTON   "OK",IDOK,76,6,50,14,WS_GROUP
  135.     PUSHBUTTON      "Cancel",IDCANCEL,76,24,50,14,WS_GROUP
  136.     GROUPBOX        "&Bits Per Pixel:",IDD_BPP,6,41,121,42,WS_GROUP
  137.     CONTROL         "&1",IDD_1,"Button",BS_AUTORADIOBUTTON | WS_TABSTOP,22,
  138.                     52,24,10
  139.     CONTROL         "&4",IDD_4,"Button",BS_AUTORADIOBUTTON,22,67,24,10
  140.     CONTROL         "&8",IDD_8,"Button",BS_AUTORADIOBUTTON,57,52,24,10
  141.     CONTROL         "&16",IDD_16,"Button",BS_AUTORADIOBUTTON,57,67,24,10
  142.     CONTROL         "&24",IDD_24,"Button",BS_AUTORADIOBUTTON,92,52,24,10
  143. END
  144.  
  145.  
  146. GDIDIB MENU DISCARDABLE 
  147. BEGIN
  148.     POPUP "&File"
  149.     BEGIN
  150.         MENUITEM "&New",                        IDM_FILENEW
  151.         MENUITEM "&Open...",                    IDM_FILEOPEN
  152.         MENUITEM "&Save",                       IDM_FILESAVE
  153.         MENUITEM "Save &As...",                 IDM_FILESAVEAS
  154.         MENUITEM "&Close",                      IDM_FILECLOSE
  155.         MENUITEM SEPARATOR
  156.         MENUITEM "&Print",                      IDM_FILEPRINT, GRAYED
  157.         MENUITEM "Page Se&tup...",              IDM_FILEPAGESU, GRAYED
  158.         MENUITEM "P&rint Setup...",             IDM_FILEPRINTSU, GRAYED
  159.         MENUITEM SEPARATOR
  160.         MENUITEM "E&xit",                       IDM_EXIT
  161.     END
  162.     MENUITEM "&Info!",                      IDM_INFO
  163.     POPUP "&Draw"
  164.     BEGIN
  165.         MENUITEM "Pi&xel",                      IDM_PIXEL
  166.         MENUITEM "&Line",                       IDM_LINE
  167.         MENUITEM "&Rect",                       IDM_RECT
  168.         MENUITEM "&Ellipse",                    IDM_ELLIPSE
  169.         MENUITEM "Be&zier",                     IDM_BEZIER
  170.         MENUITEM SEPARATOR
  171.         MENUITEM "&Fill Objects",               IDM_FILL
  172.         MENUITEM SEPARATOR
  173.         MENUITEM "&Pen Style...",               IDM_CREATEPEN
  174.         MENUITEM "&Brush Style...",             IDM_CREATEBRUSH
  175.     END
  176.     POPUP "&Help"
  177.     BEGIN
  178.         MENUITEM "&About...",                   IDM_ABOUT
  179.     END
  180. END
  181.  
  182.  
  183. GDIDIB ACCELERATORS MOVEABLE PURE 
  184. BEGIN
  185.     "Q",            IDM_EXIT,               VIRTKEY, CONTROL
  186. END
  187.  
  188.  
  189. VS_VERSION_INFO VERSIONINFO
  190.  FILEVERSION 4,0,0,0
  191.  PRODUCTVERSION 4,0,0,0
  192.  FILEFLAGSMASK 0x3fL
  193. #ifdef _DEBUG
  194.  FILEFLAGS 0xbL
  195. #else
  196.  FILEFLAGS 0xaL
  197. #endif
  198.  FILEOS 0x10001L
  199.  FILETYPE 0x1L
  200.  FILESUBTYPE 0x0L
  201. BEGIN
  202.     BLOCK "StringFileInfo"
  203.     BEGIN
  204.         BLOCK "040904E4"
  205.         BEGIN
  206.             VALUE "CompanyName", "Microsoft Corporation\0"
  207.             VALUE "FileDescription", "GDIDIB Example Application\0"
  208.             VALUE "FileVersion", "Version 4.0\0"
  209.             VALUE "InternalName", "GDIDIB\0"
  210.             VALUE "LegalCopyright", "Copyright \251 Microsoft Corp. 1990-1995\0"
  211.             VALUE "LegalTrademarks", "Microsoft\256 is a registered trademark of Microsoft Corporation. Windows(TM) is a trademark of Microsoft Corporation\0"
  212.             VALUE "ProductName", "GDIDIB\0"
  213.             VALUE "ProductVersion", "Version 4.0\0"
  214.         END
  215.     END
  216.     BLOCK "VarFileInfo"
  217.     BEGIN
  218.         VALUE "Translation", 0x409, 1252
  219.     END
  220. END
  221.  
  222.  
  223. STRINGTABLE DISCARDABLE 
  224. BEGIN
  225.     IDS_APPNAME             "GDIDIB"
  226.     IDS_DESCRIPTION         "GDIDIB Example Application"
  227.     IDS_READY               "Ready"
  228.     IDS_FILTERSTRING        "Bitmaps(*.bmp;*.dib;*.rle)|*.bmp;*.dib;*.rle|All Files(*.*)|*.*|"
  229.     IDS_SAVEASTITLE         "Select file to save DIB to"
  230.     IDS_UNTITLED            "Untitled"
  231.     IDS_SAVECHANGES         "Save bitmap changes to file?"
  232. END
  233.  
  234. STRINGTABLE DISCARDABLE 
  235. BEGIN
  236.     ERR_NOT_DIB             "Not a Windows DIB file!"
  237.     ERR_UNSUPPORTEDFORMAT   "Not a supported DIB format!"
  238.     ERR_MEMORY              "Couldn't allocate memory!"
  239.     ERR_READ                "Error reading file!"
  240. END
  241.  
  242. STRINGTABLE DISCARDABLE 
  243. BEGIN
  244.     ERR_SAVE                "Error saving file!"
  245.     ERR_LOCK                "Error locking memory!"
  246.     ERR_OPEN                "Error opening file!"
  247.     ERR_CREATEPAL           "Error creating palette!"
  248.     ERR_GETDC               "Error getting a DC!"
  249.     ERR_FILENOTFOUND        "File Not Found!"
  250.     ERR_INVALIDHANDLE       "Invalid Handle!"
  251.     ERR_DIBFUNCTION         "General Error on call to DIB function!"
  252. END
  253.  
  254. STRINGTABLE DISCARDABLE 
  255. BEGIN
  256.     ERR_CREATEDIBSECTION    "CreateDIBSection failed!"
  257.     ERR_FILLCOLORTABLE      "Error filling color table!"
  258.     ERR_WIDTH               "Must specify a bitmap width!"
  259.     ERR_HEIGHT              "Must specify a bitmap height!"
  260.     ERR_STRETCHDIBITS       "StretchDIBits failed!"
  261.     ERR_UNDEFINEDERROR      "Undefined Error!"
  262. END
  263.  
  264. STRINGTABLE DISCARDABLE 
  265. BEGIN
  266.     IDS_SYSMENU             "Move, size, or close application window"
  267. END
  268.  
  269. STRINGTABLE DISCARDABLE 
  270. BEGIN
  271.     IDS_SCRESTORE           "Restores the window to normal size"
  272. END
  273.  
  274. STRINGTABLE DISCARDABLE 
  275. BEGIN
  276.     IDS_SCMOVE              "Changes the position of the window"
  277. END
  278.  
  279. STRINGTABLE DISCARDABLE 
  280. BEGIN
  281.     IDS_SCSIZE              "Changes the size of the window"
  282. END
  283.  
  284. STRINGTABLE DISCARDABLE 
  285. BEGIN
  286.     IDS_SCMINIMIZE          "Minimizes the window to an icon"
  287. END
  288.  
  289. STRINGTABLE DISCARDABLE 
  290. BEGIN
  291.     IDS_SCMAXIMIZE          "Enlarges the window to full size"
  292. END
  293.  
  294. STRINGTABLE DISCARDABLE 
  295. BEGIN
  296.     IDS_SCCLOSE             "Closes the window"
  297. END
  298.  
  299. STRINGTABLE DISCARDABLE 
  300. BEGIN
  301.     IDS_SCTASKLIST          "Switches to another application through the Windows Task Manager"
  302. END
  303.  
  304. STRINGTABLE DISCARDABLE 
  305. BEGIN
  306.     IDM_FILEMENU            "Create, open, save, or print documents"
  307.     IDM_FILENEW             "Creates a new document"
  308.     IDM_FILEOPEN            "Opens an existing document"
  309.     IDM_FILESAVE            "Saves the active document"
  310.     IDM_FILESAVEAS          "Saves the active document under a different name"
  311.     IDM_FILECLOSE           "Closes the active document"
  312.     IDM_FILEPRINT           "Prints the active document"
  313.     IDM_FILEPAGESU          "Changes the page setup"
  314. END
  315.  
  316. STRINGTABLE DISCARDABLE 
  317. BEGIN
  318.     IDM_FILEPRINTSU         "Changes the printer selection or configuration"
  319.     IDM_EXIT                "Quits this application"
  320. END
  321.  
  322. STRINGTABLE DISCARDABLE 
  323. BEGIN
  324.     IDM_EDITMENU            "Undo, delete, copy, and insert"
  325.     IDM_EDITUNDO            "Reverses the last action"
  326.     IDM_EDITCUT             "Cuts the selection and puts it on the clipboard"
  327.     IDM_EDITCOPY            "Copies the selection and puts it on the clipboard"
  328. END
  329.  
  330. STRINGTABLE DISCARDABLE 
  331. BEGIN
  332.     IDM_EDITPASTE           "Inserts the clipboard contents at the insertion point"
  333.     IDM_EDITCLEAR           "Removes the selection without putting it on the clipboard"
  334. END
  335.  
  336. STRINGTABLE DISCARDABLE 
  337. BEGIN
  338.     IDM_INFO                "Show display device color information"
  339. END
  340.  
  341. STRINGTABLE DISCARDABLE 
  342. BEGIN
  343.     IDM_DRAWMENU            "Drawing Options"
  344.     IDM_PIXEL               "Draw individual pixels"
  345.     IDM_LINE                "Draw lines"
  346.     IDM_RECT                "Draw rectangles"
  347.     IDM_ELLIPSE             "Draw ellipses"
  348.     IDM_BEZIER              "Draw bezier curves"
  349.     IDM_FILL                "Use brush to fill closed objects"
  350.     IDM_NOFILL              "Don't fill closed objects"
  351.     IDM_CREATEPEN           "Set pen style"
  352.     IDM_CREATEBRUSH         "Set brush style"
  353. END
  354.  
  355. STRINGTABLE DISCARDABLE 
  356. BEGIN
  357.     IDM_HELPMENU            "Get help"
  358.     IDM_ABOUT               "Displays information about this application"
  359. END
  360.  
  361. STRINGTABLE DISCARDABLE 
  362. BEGIN
  363.     IDD_HORIZONTAL          "-- Horizontal"
  364.     IDD_VERTICAL            "|| Vertical"
  365.     IDD_FDIAGONAL           "\\\\ Diagonal"
  366.     IDD_BDIAGONAL           "// Diagonal"
  367.     IDD_CROSS               "++ Cross"
  368.     IDD_DIAGCROSS           "XX Cross"
  369. END
  370.  
  371. STRINGTABLE DISCARDABLE 
  372. BEGIN
  373.     IDD_SOLIDPEN            "Solid"
  374.     IDD_DASH                "Dashed"
  375. END
  376.  
  377. STRINGTABLE DISCARDABLE 
  378. BEGIN
  379.     IDD_DOT                 "Dotted"
  380.     IDD_DASHDOT             "Dash-Dot"
  381.     IDD_DASHDOTDOT          "Dash-Dot-Dot"
  382.     IDD_NULLPEN             "Null"
  383.     IDD_INSIDEFRAME         "Inside Frame"
  384. END
  385.  
  386.  
  387.